package com.czxy.demo18;

public class RentalHouse extends Car {
    double rent(Car car,int month){
        return car.getPrice()*month;
    }
}